﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Rights/RightsMaster.Master" CodeBehind="UserManPage.aspx.cs" Inherits="QuaManSys.Rights.UserManPage" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">--%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>用户管理</title>
    <link href="~/Css/index.css" rel="stylesheet" type="text/css" />
    <link href="~/Css/childindex.css" rel="stylesheet" type="text/css" />
    <link href="~/Css/GridView.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript">
         function $id(s) {
             return document.getElementById(s);
         }
         //新增数据合法性检测
         function Btn_Search() {
             var ret = true;

             if ($id("txt_name").value == "") {
                 alert('请输入用户名');
                 ret = false;
             }

             return ret;
         }
        
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphInner" runat="server">
<div>
    <asp:Panel ID="ChildPanel" runat="server">
        <asp:Label ID="lblPerson" runat="server" Text="用户管理"></asp:Label>
        <asp:Button ID="btn_search" CssClass="smallbtn" runat="server" Text="查找" OnClick="btn_search_Click" />
        <asp:Panel ID="pnlPerson" runat="server" Visible="false">
            请输入编号搜索：<asp:TextBox ID="txt_name" CssClass="inputbox" runat="server"></asp:TextBox>
        </asp:Panel>
    </asp:Panel>
<div id="strinfo" runat="server" class="mbox pbox" visible="false">
</div>
    <div class="gv">
        <asp:GridView ID="UserList" runat="server" DataKeyNames="FPERSON" CssClass="Grid" PageSize="15"
            AutoGenerateColumns="False">
            <FooterStyle CssClass="GridFooter" />
            <RowStyle CssClass="Row" />
            <Columns>
                <asp:BoundField DataField="FPERSON" HeaderText="编号" ReadOnly="True">
                    <ItemStyle HorizontalAlign="Left" Wrap="false" />
                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                </asp:BoundField>
                <asp:BoundField DataField="FDISPLAYNAME" HeaderText="用户名" ReadOnly="True">
                    <ItemStyle HorizontalAlign="Left" Wrap="false" />
                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                </asp:BoundField>
                <asp:BoundField DataField="DEPARTMENT" HeaderText="部门" ReadOnly="True">
                    <ItemStyle HorizontalAlign="Left" Wrap="false" />
                    <HeaderStyle HorizontalAlign="Center" Wrap="False" />
                </asp:BoundField>
                <asp:HyperLinkField HeaderText="授权" Text="授权" DataNavigateUrlFields="FPERSON"
                        DataNavigateUrlFormatString="UserGrant.aspx?employeeId={0}" />
                <asp:HyperLinkField HeaderText="详细信息" Text="详细信息" DataNavigateUrlFields="FPERSON"
                        DataNavigateUrlFormatString="UserDetail.aspx?employeeId={0}" />
            </Columns>
            <HeaderStyle CssClass="HeadingCell" />
            <AlternatingRowStyle BorderStyle="None" CssClass="AlternatingRow" />
        </asp:GridView>
        <div id="GridViewMsg" style="padding: 5px;" runat="server">
        </div>
    </div>
</div>
</asp:Content>